package cn.kgc.ffzw.day15.src.main.java.com.ffzw.ffzw;

public class Hero {
    String name;
    int gongjili;
    int fangyu;
    int blood;
    String skill;

    public Hero(){
        this.name="盲僧";
        this.gongjili=128;
        this.fangyu=44;
        this.blood=560;
        this.skill="Q";
    }

    public Hero(String name){
        this.name=name;
    }

    public void kill(){
        System.out.print("攻击");
    }
    public void kill(String name){
        System.out.print(name);
        this.kill();
    }
    public void kill(String name,String skill){
        System.out.print(name+skill);
        this.kill();
    }

    public void kill(YeGuai yg){
        System.out.println("对"+yg.name+"发功攻击");
    }
    public void kill(XiaoBing xb){
        System.out.println("对"+xb.name+"发功攻击");
    }
    public void kill(String name,YeGuai yg,XiaoBing xb){
        System.out.println(name+"对"+yg.name+"和"+xb.name+"发功攻击");
    }
}
